﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Channels;

namespace BranchOfSansar.Sansar.Master
{
    public partial class MasterClient
    {
        private OperationContextScope scope=null;
        public MasterClient(Token token):this()
        {
            scope=new OperationContextScope(this.InnerChannel);
            MessageHeader hdr = MessageHeader.CreateHeader("eToken",token.Value,"Sansar");        
            OperationContext.Current.OutgoingMessageHeaders.Add(hdr);
        }      

    }
}
